# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Henrik Grimler <henrik@grimler.se>
pkgname=device-samsung-gts210lte
pkgdesc="Samsung Galaxy Tab S2 9.7 LTE (2015)"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-samsung-gts210lte
	msm-fb-refresher
	mkbootimg
	postmarketos-base
	postmarketos-base-downstream
	postmarketos-base-downstream-disable-udev-v4l
"
makedepends="devicepkg-dev"
source="deviceinfo 90-sec_touchscreen.rules"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Non-free firmware for Samsung Galaxy Tab S2"
	depends="firmware-samsung-gts210 firmware-samsung-gts210-lte"
	mkdir "$subpkgdir"
}

sha512sums="
5273aa03e972c777c1c01fd7f2d60ae70e9159c689d21a9dc288e35fec379d795fb34d74400204a1ac5c0c93c802ec9fc3bd6296929dc11824ea275c9d82425b  deviceinfo
0d23fae6de9b04a36f395068278b8a9054c33e435b24de943da1e55a0ee2d88ee932a3fd2f660596377b14474483edecb8357684f9b7bc2c53979c7f863fae52  90-sec_touchscreen.rules
"
